﻿using System.Windows;
using UmengAnalyticsNet.Interface;

namespace UmengAnalyticsNet.Wpf
{
    public class AppInfo : IInformation
    {
        public string GetUserId()
        {
            return "1234567890";
        }

        public string GetAppVersion()
        {
            var version = Application.Current.GetType().Assembly.GetName().Version;
            return version.ToString(3);
        }

        public string GetResolution()
        {
            var height = SystemParameters.PrimaryScreenHeight;
            var width = SystemParameters.PrimaryScreenWidth;
            return string.Format("{0}*{1}", width, height);
        }
    }
}